package com.caiheng.api.entity.estate;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.caiheng.api.entity.sys.SysDictData;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 巡检设备
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("terminals")
public class Terminals implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer estateId;
	private String terminalNum;
	private String terminalName;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	/**
	 *   业主是否可见
	 */
	private Integer isShowProprietor;

	private Integer isHealth;

	private String terminalType;
	private String checkCount;
	private String checkCountUnit;

	private Integer state;
	private String qrCode;
	private String specs;
	private Integer lastRepairRecordId;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastRepairReportTime;

	private Integer isShowCheckPoint;
	private String checkPoints;

	/**
	 *  建设日期
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date buildDate;

	/**
	 * 负责人微信用户id
	 */
	private Integer wxManagerId;
	/**
	 * 负责人系统管理员id
	 */
	private Integer sysUserId;
	/**
	 *  相关介绍
	 */
	private String remark;

	@TableField(exist = false)
	private String estateName;

	@TableField(exist = false)
	private List<SysDictData> dicts;

	@TableField(exist = false)
	private List<TerminalCheckRecord> records;

	@TableField(exist = false)
	private Integer currentHealthCount;
}
